import { createRouter, createWebHashHistory } from 'vue-router'
import Home from '@/components/Home.vue'
import DashBoard from '@/components/DashBoard.vue'
import TeacherManagement from '@/components/TeacherManagement.vue'
import CourseList from '@/components/CourseList.vue'
const routes = [
  { path: '/', redirect: 'home' },
  {
    path: '/home',
    component: Home,
    children: [{
      path: '/home/dashboard', component: DashBoard
    }, {
      path: '/home/teachermanagement', component: TeacherManagement
    }, {
      path: '/home/courselist', component: CourseList
    }]
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
